value_num = input("How many values will be entered? ").strip()
if not value_num.isdigit():
    print(f"{value_num} is not a valid number of values.")
else:
    times = 1
    odd_nums = 0
    even_nums = 0
    count = 0
    while times != int(value_num) + 1:
        input_value = input(f"Please enter value #{times}: ").strip()
        if not input_value.isdigit():
            times += 1
        else:
            value = int(input_value)
            if value % 2 == 0:
                even_nums += 1
                times += 1
                count += 1
            else:
                odd_nums += 1
                times += 1
                count += 1
    print(f"Entered numbers:{count} odd:{odd_nums} even:{even_nums}")
